﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace L.Basic.Authority.Models
{
    public class User
    {
        public virtual string Id { get; set; }
        public virtual string LoginName { get; set; }
        public virtual string Name { get; set; }
        public virtual string Password { get; set; }


        public virtual Department Department { get; set; }
        public virtual IList<Role> Roles { get; set; }

        public virtual UserState State { get; set; }


        public virtual string Code { get; set; }

        public virtual object Tag { get; set; }

        //IEnumerable<string> Roles { get; } 
    }

    /// <summary>
    /// 用户状态
    /// </summary>
    public enum UserState
    {
        /// <summary>
        /// 正常
        /// </summary>
        Normal = 0,


        /// <summary>
        /// 账户停用
        /// </summary>
        Disabled = 1
    }
}
